home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-22 | 1.0 KB | 34 lines | [TEXT/GEOL] |
- Item 4311852 22-Aug-89 02:08
-
- From: D2215 Dac SW, Wilma Blair,PRT
-
- To: MACDTS Macintosh Developer Tech. Supt.,APL
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: disable invalid Paste
-
- I need to modify TNumberText (and some others) so that one cannot paste invalid
- characters into the dialog.
-
- Unless there is a simple method I am overlooking, it would be necessary to add
- a function:
-
- FUNCTION TNumberText.FilterChars (h: handle; theLength: INTEGER; dataType:
- resType): INTEGER;
-
- that would remove invalid characters from the handle of text and return the new
- length.
-
- This would be called from TDialogTeView.TTePasteCommand.ITePasteCommand right
- after it calls gApplication.GetDataToPaste as:
-
- IF member (fEditText, 'an abstract type with the filter') THEN newLength:=
- TAbstractType(fEditText).FilterChars (newText, newLength, dataType);
-
- Is there a simpler way or must I kludge this up?
-
- Regards, Les Caudle
-
-
-